package rsb21411ls.d1102;

public class Teacher extends Person{
    private int salary;

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    private String education;

    public Teacher(String name, int age) {
        super(name, age);

    }
    public void teach(){
        System.out.println("teach");
    }
}
